package net.dopan.pigframe.user.model.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.*;

import java.io.Serializable;
import java.util.Date;

/**
 * @author wufeihong
 * 用户活动表
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName("user_activity")
public class UserActivity extends Model<UserActivity> {

  private static final long serialVersionUID = 1L;

  /**
   * 活动Id
   */
  @TableId(value = "activity_id", type = IdType.AUTO)
  private long activityId;
  @TableField("activity_name")
  private String activityName;
  @TableField("start_time")
  private Date startTime;
  @TableField("end_time")
  private Date endTime;
  /**
   * 活动费用
   */
  @TableField("activity_cost")
  private String activityCost;
  @TableField("activity_detail")
  private String activityDetail;
  @TableField("cover_photo")
  private String coverPhoto;
  @TableField("user_id")
  private long userId;
  @TableField("people_number")
  private long peopleNumber;
  /**
   * 活动类型
   */
  @TableField("classify_id")
  private long classifyId;
  /**
   * 审核标记 0未通过 1通过
   */
  private byte auditing;
  @Override
  protected Serializable pkVal() {
    return this.activityId;
  }
}
